package com.bdqn.shiro.service;

import com.bdqn.shiro.config.mybatis.IService;
import com.bdqn.shiro.pojo.Right;
import com.bdqn.shiro.pojo.Role;
import org.apache.ibatis.annotations.Param;


/**
 *
 */
public interface RightService extends IService<Right> {

    /**
     * 保存角色对应的权限关系
     *
     * @param role 角色
     * @param rightCodes 权限关系集合
     * @return
     */
    boolean saveRoleRight(@Param("role") Role role, @Param("rightCodes") String[] rightCodes);

}
